package com.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppUtils {
	private static final  ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:/spring/applicationContext*.xml");
	
	public static  <T> T daoFactory( Class<T> clazz){
		return applicationContext.getBean(clazz);
	}
	
}
